home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1993-02-25 | 552 b | 27 lines |
- 'EXAMPLE PROGRAM THREE
- '
- 'Variables are numbers assigned to letters that can change value (vary)
- '
- '
- Rem turn the text cursor off, remove the mouse pointer,set text background
- Rem to blue and clear the screen to blue, see EXAMPLE1 and EXAMPLE2
- Curs Off : Hide : Paper 0 : Cls 0
- '
- '
- '
- Rem the variable F1 is given its starting value change this to any number.
- F1=200
- '
- '
- Rem F1 is now INCremented by 1.
- Inc F1
- '
- '
- Rem five isnow subtracted from F1, change this as well.
- F1=F1-5
- '
- Rem We now PRINT the value of F1.
- Print F1
- '
- '
- Wait Key : Edit